﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

namespace Base
{
    /// <summary>
    /// Enumeration of command type
    /// </summary>
    public enum Command { Registration, Login, Message, PrivateMessage, List, Logout, None };

    /// <summary>
    /// Message class
    /// </summary>
    
    [Serializable]
    public class Message
    {
        public Command CommandType
        {
            get;
            set;
        }
        public string Answer
        {
            get;
            set;
        }
        public string UserNickName
        {
            get;
            set;
        }
        public string NickNameToPrivate
        {
            get;
            set;
        }
        public string Password
        {
            get;
            set;
        }
        public string MessageText
        {
            get;
            set;
        }
        public List<string> UsersList
        {
            get;
            set;
        }

        public Message()
        {
            CommandType = Command.None;
            Answer = UserNickName = NickNameToPrivate = Password = MessageText = null;
            UsersList = new List<string>();
        }
    }
}
